package cn.tedu.ivos.vehicle.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class Vehicle {
    @ApiModelProperty(value = "车辆id")
    Long id;
    @ApiModelProperty(value = "车辆品牌")
    String brand;
    @ApiModelProperty(value = "车牌号")
    String license;
    @ApiModelProperty(value = "车辆型号")
    String model;
    @ApiModelProperty(value = "车辆识别码")
    String code;
    @ApiModelProperty(value = "车辆排量")
    String displacement;
    @ApiModelProperty(value = "车辆状态")
    String status;
    @ApiModelProperty(value = "车辆类型")
    String type;
    @ApiModelProperty(value = "车辆颜色")
    String color;
    @ApiModelProperty(value = "里程数")
    String kilometers;
    @ApiModelProperty(value = "上牌时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date regTime;
    @ApiModelProperty(value = "购买时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date buyTime;
    @ApiModelProperty(value = "购买价格")
    String price;
    @ApiModelProperty(value = "电池类型")
    String batteryType;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createTime;
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date updateTime;
    @ApiModelProperty(value = "电子围栏绑定状态")
    String geofenceBindStatus;
    @ApiModelProperty(value = "电子围栏id")
    Long geofenceId;
}
